#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo02.py
@time:2022/02/08
"""

age = 20

def test01():
    ...
    import demo02
    print(demo02.age)

    import sys
    demo02_ref = sys.modules['demo02']
    print(demo02_ref.age)


def test02():
    ...
    import sys
    # print(sys.modules)
    for key,val in sys.modules.items():
        print(f'{key}      :{val}')


def test03():
    ...
    def abc(a,*,b,c):
        print(a,b,c)

    abc(1,b=2,c=3)

    # 关键参数后面不能使用指定参数
    # def tony(a,**kwargs,b,c):
    #     ...


if __name__ == '__main__':
    pass
    test03()